package com.example.service.impl;

import com.example.mapper.RegMapper;
import com.example.pojo.Reg_Pojo;
import com.example.service.RegService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegServiceImpl implements RegService {

    @Autowired
    private RegMapper regMapper;

    @Override
    public List<Reg_Pojo> listAll() {
        return regMapper.listAll();
    }

    @Override
    public Reg_Pojo getById(Integer id) {
        return regMapper.getById(id);
    }

    @Override
    public void insert(Reg_Pojo reg) {
        regMapper.insert(reg);
    }

    @Override
    public void update(Reg_Pojo reg) {
        regMapper.update(reg);
    }

    @Override
    public void delete(Integer id) {
        regMapper.delete(id);
    }
}
